package cn.oms.pms.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("patient_admission_record")
@ApiModel(value="PatientAdmissionRecord对象", description="")
public class PatientAdmissionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "入院登记ID（新增生成）")
    @TableField("ADMISSION_ID")
    private String admissionId;

    @ApiModelProperty(value = "用户ID（关联用户表）")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "预约号（对应预约表）（OP20220417191904001）")
    @TableField("APPOINTMENT_NO")
    private String appointmentNo;

    @ApiModelProperty(value = "患者信息ID（对应基本信息表）（ALL4452）（cumcNO）")
    @TableField("PATIENT_ID")
    private String patientId;

    @ApiModelProperty(value = "患者姓名")
    @TableField("PATIENT_NAME")
    private String patientName;

    @ApiModelProperty(value = "医院号（就诊的医院代码）")
    @TableField("HOSPITAL_CODE")
    private String hospitalCode;

    @ApiModelProperty(value = "中心号（就诊中心代码）")
    @TableField("AREA_CODE")
    private String areaCode;

    @ApiModelProperty(value = "专科CODE（对应专科表）")
    @TableField("SPECIALTY_CODE")
    private String specialtyCode;

    @ApiModelProperty(value = "科室CODE（对应科室表）")
    @TableField("DEPARTMENT_CODE")
    private String departmentCode;

    @ApiModelProperty(value = "医生CODE（对应医生表）")
    @TableField("STAFF_CODE")
    private String staffCode;

    @ApiModelProperty(value = "入院号（新增生成患者入院号）（用于关联患者病例使用）（OP门诊  IP住院 ER急诊）（OP-220219-000001-1）(登记部门-入院年份-入院排名-入院次数)（关联入院就诊状态记录表）")
    @TableField("ADMISSION_NO")
    private String admissionNo;

    @ApiModelProperty(value = "患者入院登记类型（0门诊 1住院）")
    @TableField("APPOINTMENT_TYPE")
    private Integer appointmentType;

    @ApiModelProperty(value = "登记症状（入院护士简单检查后确定症状类型）")
    @TableField("ADMISSION_SYMPTOMS")
    private String admissionSymptoms;

    @ApiModelProperty(value = "登记人ID（护士或医生）")
    @TableField("ADMISSION_MAN_ID")
    private String admissionManId;

    @ApiModelProperty(value = "登记人姓名")
    @TableField("ADMISSION_MAN_NAME")
    private String admissionManName;

    @ApiModelProperty(value = "费用类型（0自费 1预存扣除）")
    @TableField("FEE_TYPE")
    private Integer feeType;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
